package mudfox;

import static java.lang.System.out;
import mudfox.entity.User;
import mudfox.support.MongoHelper;


public class Main {

    public static void main(String[] args) {
        User user=new User("fox",12,"192.168.1.100");
        MongoHelper db=new MongoHelper("test","user");
        if(db.countDocuments() != 0)
            db.dropCollection();

        db.insertOne(user.toDocument());
        db.printAll();
    }
}
